﻿using BLToolkit.Data;
using BLToolkit.Data.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SettlersAuto.Data.Entities
{
    public class SettlersAutoDb : DbManager
    {
        public SettlersAutoDb()
            : this("SettlersAuto")
        {
        }

        protected override BLToolkit.Data.Sql.SqlQuery ProcessQuery(BLToolkit.Data.Sql.SqlQuery sqlQuery)
        {
            return base.ProcessQuery(sqlQuery);
        }

        public SettlersAutoDb(string connectionStringName)
            : base(connectionStringName)
        {
        }

        public Table<TradeSlot> TradeSlots
        {
            get { return this.GetTable<TradeSlot>(); }
        }

        public Table<TradeSession> TradeSessions
        {
            get { return this.GetTable<TradeSession>(); }
        }
    }
}
